CREATE TRIGGER Updating ON Value
AFTER UPDATE
AS
BEGIN
	SET NOCOUNT ON;
	DECLARE @BLOB as int;
	DECLARE @ID as int;
	IF (SELECT Draft FROM inserted) = 1
	BEGIN
		SET @BLOB = (SELECT BLOB From inserted);
		SET @ID = (SElECT ID FROM inserted);
		UPDATE Value SET BLOB = @BLOB WHERE ID = @ID
	END
	ElSE
	BEGIN
		rollback;
	END
END